package com.soecode.wxtools.bean.result;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.IOException;
import java.util.List;

public class KfAccountListResult {
    @JSONField(name = "kf_list")
    private List<KfAccountResult> kfList;

    public List<KfAccountResult> getKfList() {
        return kfList;
    }

    public void setKfList(
            List<KfAccountResult> kfList) {
        this.kfList = kfList;
    }

    @Override
    public String toString() {
        return "KfAccountListResult{" +
                "kfList=" + kfList +
                '}';
    }

    public static KfAccountListResult fromJson(String json) {
        return JSONObject.parseObject(json, KfAccountListResult.class);
    }

    class KfAccountResult {
        @JSONField(name = "kf_account")
        private String kfAccount;
        @JSONField(name = "kf_nick")
        private String kfNick;
        @JSONField(name = "kf_id")
        private String kfId;
        @JSONField(name = "kf_headimgurl")
        private String kfHeadImgUrl;

        public String getKfAccount() {
            return kfAccount;
        }

        public void setKfAccount(String kfAccount) {
            this.kfAccount = kfAccount;
        }

        public String getKfNick() {
            return kfNick;
        }

        public void setKfNick(String kfNick) {
            this.kfNick = kfNick;
        }

        public String getKfId() {
            return kfId;
        }

        public void setKfId(String kfId) {
            this.kfId = kfId;
        }

        public String getKfHeadImgUrl() {
            return kfHeadImgUrl;
        }

        public void setKfHeadImgUrl(String kfHeadImgUrl) {
            this.kfHeadImgUrl = kfHeadImgUrl;
        }

        @Override
        public String toString() {
            return "KfAccountResult{" +
                    "kfAccount='" + kfAccount + '\'' +
                    ", kfNick='" + kfNick + '\'' +
                    ", kfId='" + kfId + '\'' +
                    ", kfHeadImgUrl='" + kfHeadImgUrl + '\'' +
                    '}';
        }
    }
}
